export default {
    name: 'Abnormaldevice',
    components: {

    },
    data() {
        return {
            currentTab: '/rapidupgrade',
            showPage: '/rapidupgrade',
            tabList: [
                {
                    action: '/rapidupgrade',
                    name: '快速升级'
                },
                {
                    action: '/personaltailor',
                    name: '私人定制'
                }
            ],
            showToolTop: true,
        }
    },
    computed: {

    },
    watch: {
        currentTab(newVal, oldVal) {
            this.$router.push({
                path: newVal
            });
        },
        $route: {
            handler(val, oldVal) {
                if (val.path == '/payment') {
                    this.routeAgain();
                } else if (val.path == '/raporderdetail') {
                    this.showToolTop = false;
                } else if (val.path == "/raopayorder") {
                    this.showToolTop = false;
                } else if (val.path == "/personaltailor") {
                    this.showToolTop = true;
                } else if (val.path == "/rapidupgrade") {
                    this.showToolTop = true;
                    this.currentTab = "/rapidupgrade";
                } else if (val.path == "/personaorderdetail") {
                    this.showToolTop = false;
                } else if (val.path == '/personapayorder') {
                    this.showToolTop = false;
                }
            }
        }
    },
    created() {
        this.routeAgain();
    },
    mounted() {

    },
    methods: {
        routeAgain() {
            this.$router.push({
                path: "/rapidupgrade"
            });
        }
    },
}
